package core.communication.message;

import core.communication.Direction;
import core.database.MessageType;

public class VoteMessage extends Message {
	private static final long serialVersionUID = 1L;

	private String token = null;
	private String vote = null;
	
	public VoteMessage(String token, String vote, String destinationURI) {
		super();
		setPriority(MessagePriority.HIGH);
		setMessageType(MessageType.Vote);
		setDirection(Direction.UP);
		setDestinationURI(destinationURI);
		setToken(token);
		setVote(vote);
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getVote() {
		return vote;
	}

	public void setVote(String vote) {
		this.vote = vote;
	}
	
}
